package com.leostadyn.stackfarm.timestatistics.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class ProjectBean implements Parcelable {
    public static final Creator<ProjectBean> CREATOR = new Creator<ProjectBean>() {
        @Override
        public ProjectBean createFromParcel(Parcel source) {
            return new ProjectBean(source);
        }

        @Override
        public ProjectBean[] newArray(int size) {
            return new ProjectBean[size];
        }
    };
    private String id;
    private String name;
    private String code;
    private int day;
    private String status;
    private long createdTime;


    //项目列表数据项
    public ProjectBean(String name, String code, String status, long createTime) {
        this.name = name;
        this.code = code;
        this.status = status;
        this.createdTime = createTime;
    }

    public ProjectBean(String name, String code, int day) {
        this.name = name;
        this.code = code;
        this.day = day;
    }

    public ProjectBean(Parcel source) {
        this.name = source.readString();
        this.code = source.readString();
        this.day = source.readInt();
    }

    public ProjectBean() {

    }

    public String getStatus() {
        return status;
    }

    public void setstatus(String status) {
        this.status = status;
    }

    public long getCreatedTime() {
        return createdTime;
    }

    public void setCreateTime(long createTime) {
        this.createdTime = createTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(code);
        dest.writeInt(day);
    }
}
